package com.deimos.dataBase;

import java.util.ArrayList;
import java.util.List;

public class ScenarioResponse {
    public static String Sensor_Unknown = "Sensor id availability unknown. ";
    public static String Sensor_Available = "Sensor id available for segment: segid. ";
    public static String Sensor_Unavailable = "Sensor id unavailable for segment: segid. ";
    public static String Sensor_Error = "Sensor id availability can not be checked. ";
        
    public static String Station_Unknown = "Station id availability unknown. ";
    public static String Station_Available = "Station id available for segment: segid. ";
    public static String Station_Unavailable = "Station id unavailable for segment: segid. ";
    public static String Station_Error = "Station id availability can not be checked. ";
    public static String Station_Not_Available = "Stations not available for segment: id. ";
    
    public static String Weather_Unknown = "The Percentage chance of weather affecting the acquisition is unknown. ";
    public static String Weather_Error = "The Percentage chance of weather affecting the acquisition can not be checked. ";
    
    private String description = "";
    private boolean available = true;
    private double weather_chance = 0;
    private List<String> segmentsUnavailables = new ArrayList<String>(); 

    
    public void addSegment (String segment){
	segmentsUnavailables.add(segment);
    }
    
    public List<String> getSegments(){
	return segmentsUnavailables;
    }
    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }
    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }
    
    public void setDescription(String description, String id) {
        this.description = description.replace("id", id);
    }
    
    public void setDescription(String description, String id, String segid) {
        this.description = description.replace("segid", segid).replace("id", id);
    }
    /**
     * @return the available
     */
    public boolean isAvailable() {
        return available;
    }
    /**
     * @param available the available to set
     */
    public void setAvailable(boolean available) {
        this.available = available;
    }
    /**
     * @return the weather_chance
     */
    public double getWeatherChance() {
        return weather_chance;
    }
    /**
     * @param weatherChance the weather_chance to set
     */
    public void setWeatherChance(double weatherChance) {
        weather_chance = weatherChance;
    }
   
    
}
